package main1.v_MediatorModel2;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by newtranx_011 on 2017/9/26.
 */
public abstract class Mediator {
	protected List<User> userList;
	public Mediator() {
		userList = new ArrayList<User>();
	}
	public void addUser(User user){
		user.setMediator(this);
		this.userList.add(user);
	}

	public abstract void operation(User user, String msg);

}
